package com.jinhongone.pattern.behavior.responsibility;

/**
 * @author jinho
 * @className GroupLeaderHandler
 * @description 组长（具体处理器）
 * @date 2025/4/14 10:42
 */
public class GroupLeaderHandler extends Handler {
    public GroupLeaderHandler() {
        //设置组长处理假期范围
        super(NUM_ONE, NUM_THREE);
    }

    @Override
    public void handleLeave(LeaveRequest leave) {
        System.out.println("请假人：" + leave.getName() + "请假天数：" + leave.getDays() + "请假原因：" + leave.getCause());
        System.out.println("组长审批结果：同意");
    }
}
